package com.donnie.shopping.entity.vo;

import com.donnie.shopping.enums.Fruit;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 水果订单
 * @author: ChenDeXin
 * @time: 2025/5/20 9:58
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FruitOrderItem {
    /** 水果*/
    private Fruit fruit;

    /** 数量*/
    private Integer quantity;

    public Fruit getFruit() {
        return fruit;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public Double getCurrentPriceAmt() {
        return fruit.getPrice() * quantity;
    }
}
